function exitAPP(){
	if(confirm("Confirma que desea salir de la aplicación?")){
		navigator.app.exitApp();
	}
}

function backToHome(){
	window.location.href='index.html';	
}

function backToHomeDeep(){
	window.location.href='../index.html';	
}

function getParameter(name){
	//alert(name);
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  
	var regexS = "[\\?&]"+name+"=([^&#]*)";  
	var regex = new RegExp( regexS );  
	var results = regex.exec( window.location.href ); 
	
	if( results == null ){
		return "";
	}
	else{
		return results[1];
	}
}
